﻿function evaluateSubmitAbility(sender, args) {
    var checkBox = document.getElementById("AcceptCheckBox");
    if (checkBox.checked == false) {
        var submitButton = document.getElementById("SubmitButton");
        submitButton.style.enabled = false;
        args.isValid = false;
        submitButton.enabled = false;
        return false;
    } else {
    return true;
    }
}